﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UC_FaqAddUpdate.ascx.cs" Inherits="Stationery.UC.UC_FaqAddUpdate" %>
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxUploadControl" TagPrefix="dxuc" %>
<%@ Register Assembly="DevExpress.Web.ASPxHtmlEditor.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxHtmlEditor" TagPrefix="dxhe" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>

<table cellpadding="0" cellspacing="5" width="100%" border="0">    
    <tr>
        <td style="width:130px;">
            <dxe:ASPxLabel ID="ASPxLabel2" runat="server" Text="Tiêu đề">
            </dxe:ASPxLabel>
        </td>
        <td>
            <dxe:ASPxTextBox ID="ASPxTextBoxTitle" runat="server" Width="550px">
                <ValidationSettings CausesValidation="True" Display="Dynamic" 
                    SetFocusOnError="True">
                    <RequiredField IsRequired="True" ErrorText="*" />
                </ValidationSettings>
            </dxe:ASPxTextBox>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <dxe:ASPxLabel ID="ASPxLabel1" runat="server" Text="Câu hỏi">
            </dxe:ASPxLabel>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <dxhe:ASPxHtmlEditor ID="ASPxHtmlEditorQuestion" runat="server" Width="400px" Height="250px">
                <SettingsImageUpload UploadImageFolder="~/Image/Upload/Faqs/">
                    <ValidationSettings AllowedContentTypes="image/jpeg,image/pjpeg,image/gif,image/png,image/x-png">
                    </ValidationSettings>
                </SettingsImageUpload>
            </dxhe:ASPxHtmlEditor>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <dxe:ASPxLabel ID="ASPxLabel3" runat="server" Text="Trả lời">
            </dxe:ASPxLabel>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <dxhe:ASPxHtmlEditor ID="ASPxHtmlEditorAnswer" runat="server" Width="400" Height="350px">
                <SettingsImageUpload UploadImageFolder="~/Image/Upload/Faqs/">
                    <ValidationSettings AllowedContentTypes="image/jpeg,image/pjpeg,image/gif,image/png,image/x-png">
                    </ValidationSettings>
                </SettingsImageUpload>
            </dxhe:ASPxHtmlEditor>
        </td>
    </tr>    
    <tr>
        <td>
            <dxe:ASPxLabel ID="ASPxLabel4" runat="server" Text="Email">
            </dxe:ASPxLabel>
        </td>
        <td>
            <dxe:ASPxTextBox ID="ASPxTextBoxEmail" runat="server" Width="250px">
            </dxe:ASPxTextBox>
        </td>
    </tr>
    <tr>
        <td align="right">
            <dxe:ASPxButton ID="ASPxButtonAccept" runat="server" Text="Chấp nhận" 
                onclick="ASPxButtonAccept_Click">
            </dxe:ASPxButton>
        </td>
        <td align="left">
            <dxe:ASPxButton ID="ASPxButtonCancel" runat="server" Text="Hủy" 
                onclick="ASPxButtonCancel_Click">
            </dxe:ASPxButton>
        </td>
    </tr>
</table>